# Usage:
# build-cmakedemo
# cmake ../a_cplusprime/CMakeDemo/
project(CMakeDemo)
cmake_minimum_required(VERSION 3.10)

#macro
add_definitions(-DUNICODE -D_UNICODE)

# compile features
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)

message(STATUS "===CMakeDemo begin===\n\n")

# ex1
message(STATUS "---include cmake/hello.cmake---")
include(cmake/hello.cmake)
#include(cmake/variablesAll.cmake)
message(STATUS "---end---\n\n")

# ex2
message(STATUS "---add_subdirectory cmakedemo1---")
add_subdirectory(cmakedemo1)  # cmake commands demo
message(STATUS "---end---\n\n")


# cmake 中是camke脚本
add_subdirectory(UseLib)  # cmake commands demo

add_subdirectory(cmakedemo2)  # simple cmake demo with lib

message(STATUS "===CMakeDemo end===\n\n")
